/*
 * @(#)DmsDefaultProfileSetting.java
 *
 * Copyright (c) 2003 DCIVision Ltd
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of DCIVision
 * Ltd ("Confidential Information").  You shall not disclose such Confidential
 * Information and shall use it only in accordance with the terms of the license
 * agreement you entered into with DCIVision Ltd.
 */
package com.dcivision.dms.bean;

import com.dcivision.framework.Utility;
import com.dcivision.framework.bean.AbstractBaseObject;

/**
  DmsDefaultProfileSetting.java

  This class is the serializable bean reflecting business logic uses.

    @author           Rollo Chan
    @company          DCIVision Limited
    @creation date    02/01/2004
    @version          $Revision: 1.9.4.1 $
*/

public class DmsDefaultProfileSetting extends AbstractBaseObject {

  public static final String REVISION = "$Revision: 1.9.4.1 $";

  static final long serialVersionUID = 2611172414757051682L;

  public final static String FIELD_TYPE_STRING = "S";
  public final static String FIELD_TYPE_INTEGER = "I";
  public final static String FIELD_TYPE_FLOAT = "F";
  public final static String FIELD_TYPE_DATE = "D";
  public final static String FIELD_TYPE_SELECT_DATABASE = "SDB";
  public final static String FIELD_TYPE_SELECT_HARDCODE = "SHD";

  public final static String DEFAULT_VALUES_SEPARATOR = ";";

  private String fieldName = null;
  private String fieldLabel = null;
  private String fieldType = null;
  private String mandatoryFlag = null;

  private String valueSuggestFlag = null;

  private String reference = null;
  private String sqlStat = null;

  //use for default value
  private String defaultValue = null;
  private String useSystemDate = null;
  private String defaultSelectValues = null;


  public DmsDefaultProfileSetting() {
    super();
  }

  public String getFieldName() {
    return(this.fieldName);
  }

  public void setFieldName(String fieldName) {
    this.fieldName = fieldName;
  }

  public String getFieldLabel() {
    return(this.fieldLabel);
  }

  public void setFieldLabel(String fieldLabel) {
    this.fieldLabel = fieldLabel;
  }

  public String getFieldType() {
    return(this.fieldType);
  }

  public void setFieldType(String fieldType) {
    this.fieldType = fieldType;
  }

  public String getMandatoryFlag() {
    return(this.mandatoryFlag);
  }

  public void setMandatoryFlag(String mandatoryFlag) {
    this.mandatoryFlag = mandatoryFlag;
  }

  public String getReference() {
    return(this.reference);
  }

  public void setReference(String reference) {
    this.reference = reference;
  }

  public String getSqlStat() {
    return(this.sqlStat);
  }

  public void setSqlStat(String sqlStat) {
    this.sqlStat = sqlStat;
  }

  public String getDefaultValue(){
    return this.defaultValue;
  }

  public void setDefaultValue(String defaultValue){
    this.defaultValue = defaultValue;
  }

  public String getUseSystemDate(){
    return this.useSystemDate;
  }

  public void setUseSystemDate(String useSystemDate){
    this.useSystemDate = useSystemDate;
  }

  public String getDefaultSelectValues(){
    return this.defaultSelectValues;
  }

  public void setDefaultSelectValues(String defaultSelectValues){
    this.defaultSelectValues = defaultSelectValues;
  }

    public String getValueSuggestFlag() {
        return valueSuggestFlag;
    }

    public void setValueSuggestFlag(String valueSuggestFlag) {
    //Add By Jim Zhou     2006/12/01      EIP-837
    if (Utility.isEmpty(valueSuggestFlag)){
      valueSuggestFlag = "N";
    }
    //Add End
        this.valueSuggestFlag = valueSuggestFlag;
    }


}
